#ifndef MATCHPROCPARAMCOLLECTREQUEST_H
#define MATCHPROCPARAMCOLLECTREQUEST_H

#include "BaseRequest.h"

using ParamKeys = struct ParamKeysList
{
    const QString XRay_IlluminationVoltage               = "XRay_IlluminationVoltage";               //光照电压
    const QString XRay_NeedleGaugeCalibrationDiameter    = "XRay_NeedleGaugeCalibrationDiameter";    //针规校准直径
    const QString XRay_CellQrCode                        = "XRay_CellQrCode";                        //电芯二维码
    const QString XRay_DetectionStartTime                = "XRay_DetectionStartTime";                //检测开始时间
    const QString XRay_DetectionCompletionTime           = "XRay_DetectionCompletionTime";           //检测完成时间
    const QString XRay_Corner01_NegativeCoveringPositive = "XRay_Corner01_NegativeCoveringPositive"; //1#角负极包正极
    const QString XRay_Corner02_NegativeCoveringPositive = "XRay_Corner02_NegativeCoveringPositive"; //2#角负极包正极
    const QString XRay_Corner03_NegativeCoveringPositive = "XRay_Corner03_NegativeCoveringPositive"; //3#角负极包正极
    const QString XRay_Corner04_NegativeCoveringPositive = "XRay_Corner04_NegativeCoveringPositive"; //4#角负极包正极

};


using ParamList = struct MatchProcParamCollectRequestParamList
{
    QString paramKey;
    QString paramValue;
    QString seq = "NA";
    QString location = "NA";
};

using ParamInfo = struct MatchProcParamCollectRequestParamInfo
{
    QString pcu;
    QList<ParamList> paramList;
};


class MatchProcParamCollectRequest : public BaseRequest
{
public:
    MatchProcParamCollectRequest();
    MatchProcParamCollectRequest(QString factoryNo,QString transId,QDateTime eventTime,QString eventUser,QString machineNo,QString workStep,QString location,QList<MatchProcParamCollectRequestParamInfo> paramInfo);

    // BaseRequest interface
    QByteArray toJson() const override;
    QString getEndPoint() const override;

    QString factoryNo;
    QString transId;
    QDateTime eventTime;
    QString eventUser;
    QString machineNo;
    QString workStep = "NA";
    QString location = "NA";
    QList<ParamInfo> paramInfo;


};

#endif // MATCHPROCPARAMCOLLECTREQUEST_H
